import { ref } from "vue";
export const store = ref({
  PixiComponent: null,
  // 坐标系数据
  coordinates: {
    x: 10,
    y: 10,
    max: 100
  },
  
  // 座位类型列表
  seatTypes: [
    {
      id: 0,
      name: "普通座位",
      color: "rgba(29, 220, 194, 1)", 
      price: 60
    }
  ],
  
  // 新增座位类型表单
  newSeatType: {
    id: new Date().getTime(),
    name: "",
    color: "",
    price: 0,
  },
  
  // 编辑座位类型表单
  editingSeatType: {
    id: "",
    name: "",
    color: "",
    price: 0,
  },
  
  // 对话框显示状态
  dialogs: {
    showAddTypeDialog: false,
    showEditTypeDialog: false
  },
  
  // 模板信息
  template: {
    name: "",
    remark: ""
  },
  
  // 确认按钮加载状态
  confirmButtonLoading: false,

  // 存储选中的格子坐标
  selectedCells: [],

  //存储座位格子信息数据
  seatCells: []


});